package util

import (
	"mangos/internal/arch"
	"mangos/internal/binary"
)

// EndianConvert 字节序转换
func EndianConvert(b []byte) []byte {
	if !arch.IsLittleEndian() {
		binary.Flip(b)
	}
	return b
}
